package com.ztgf.sys.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.sys.models.bo.SysEmailManageBO;
import com.ztgf.sys.models.dto.SysEmailManageDTO;
import com.ztgf.sys.models.vo.SysEmailManageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-07-10 15:22
 * Description: 邮件管理表映射
 */
@Mapper
public interface SysEmailManageMapper extends BaseMapper<SysEmailManageDTO> {


    /**
     * description: 后台管理系统邮件发送列表
     * param: [page, bo]
     * author: chenyu.wang
     * date: 2020-07-10
     * return: java.util.List<com.ztgf.sys.models.vo.SysEmailManageVO>
     */
    List<SysEmailManageVO> queryAdminEmailList(Page<SysEmailManageVO> page, @Param("item") SysEmailManageBO bo);

    /*
     * @description:查看发布邮件详情
     * @author: chenyu.wang
     * @date: 2020-08-24
     */
    SysEmailManageVO queryById(@Param("id") Long id);

    List<SysEmailManageVO> queryPageListByNoticeId(Page<SysEmailManageVO> page, SysEmailManageBO sysEmailManageBO);
}
